from src.init.init_db import db
from src.utils.model import BaseModel


class CLikeModel(BaseModel):
    __tablename__ = 'clike'  # 评论点赞表

    cid = db.Column(db.BigInteger, db.ForeignKey('comment.cid'), primary_key=True)  # 评论id
    uid = db.Column(db.BigInteger, db.ForeignKey('user.uid'), primary_key=True)  # 用户id
